package com.hns.can.service.vo;

import com.hns.can.common.vo.ReportSummaryVo;
import com.hns.tool.pub.DateTool;

import java.math.BigDecimal;

/**
 * 司机总评分vo
 * @author:zhangzq
 * @email:
 * @version Revision 2.0.0
 */
public class DriverRankVo extends ReportSummaryVo {
    private String drvId;
    private String drvName;
    private String organId;
    private String organName;
    private BigDecimal moodGrade;
    private BigDecimal safeGrade;
    private BigDecimal securityGrade;
    private BigDecimal energyGrade;
    private BigDecimal totalGrade;
    private BigDecimal totalMile;
    private BigDecimal revenue;
    private BigDecimal totalDura;
    private String allRank;//总排名
    public String getDrvId() {
        return drvId;
    }
    public void setDrvId(String drvId) {
        this.drvId = drvId;
    }
    public String getOrganId() {
        return organId;
    }
    public void setOrganId(String organId) {
        this.organId = organId;
    }
    public BigDecimal getMoodGrade() {
        if(moodGrade==null){
            return new BigDecimal(0);
        }else
            return moodGrade;
    }
    public void setMoodGrade(BigDecimal moodGrade) {
        this.moodGrade = moodGrade;
    }
    public BigDecimal getSafeGrade() {
        return safeGrade;
    }
    public void setSafeGrade(BigDecimal safeGrade) {
        this.safeGrade = safeGrade;
    }
    public BigDecimal getSecurityGrade() {
        if(securityGrade==null){
            return new BigDecimal(0);
        }else
            return securityGrade;
    }
    public void setSecurityGrade(BigDecimal securityGrade) {
        this.securityGrade = securityGrade;
    }
    public BigDecimal getEnergyGrade() {
        return energyGrade;
    }
    public void setEnergyGrade(BigDecimal energyGrade) {
        this.energyGrade = energyGrade;
    }
    public BigDecimal getTotalGrade() {
        return totalGrade;
    }
    public void setTotalGrade(BigDecimal totalGrade) {
        this.totalGrade = totalGrade;
    }
    public BigDecimal getTotalMile() {
        return totalMile;
    }
    public void setTotalMile(BigDecimal totalMile) {
        this.totalMile = totalMile;
    }
    public BigDecimal getRevenue() {
        if(revenue==null){
            return new BigDecimal(0);
        }else
            return revenue;
    }
    public void setRevenue(BigDecimal revenue) {
        this.revenue = revenue;
    }
    public String getDrvName() {
        return drvName;
    }
    public void setDrvName(String drvName) {
        this.drvName = drvName;
    }
    public String getOrganName() {
        return organName;
    }
    public void setOrganName(String organName) {
        this.organName = organName;
    }
    public String getAllRank() {
        return allRank;
    }
    public void setAllRank(String allRank) {
        this.allRank = allRank;
    }
    public BigDecimal getTotalDura() {
        return totalDura;
    }
    public void setTotalDura(BigDecimal totalDura) {
        this.totalDura = totalDura;
    }
    public String getLastingTime() {
        if(this.getTotalDura()!=null){
            return DateTool.transformTimeForTimeUnit(this.getTotalDura(), "HH'MI'SS''");
        }else{
            return "";
        }
    }
}
